<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('rules',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('rules');
	$htmls=array(
		'type'=>'edit',
		'desc'=>'规则',
		'edit_tab'=>true,
		'edits'=>array(
			array(
				'title'=>'战力计算规则',
				'list'=>array(
				array('type'=>'string','title'=>'规则标题','name'=>'zhanlititle'),
				array('type'=>'richtext','title'=>'规则内容','name'=>'zhanlicontent'),
				)
			),
			array(
				'title'=>'福利计算规则',
				'list'=>array(
				array('type'=>'string','title'=>'规则标题','name'=>'fulititle'),
				array('type'=>'richtext','title'=>'规则内容','name'=>'fulicontent'),
				)
			),
			array(
				'title'=>'帮派成立协议',
				'list'=>array(
				array('type'=>'string','title'=>'规则标题','name'=>'bangtitle'),
				array('type'=>'richtext','title'=>'规则内容','name'=>'bangcontent'),
				)
			),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
